<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "crm_notify".
 *
 * @property int $id
 * @property string $content 内容
 * @property string $title 头
 * @property string $brief 简介
 * @property string $create_at 创建时间
 * @property int $user_id 创建人
 * @property string $update_at 更新时间
 */
class CrmNotify extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return 'crm_notify';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['content'], 'string'],
            [['user_id'], 'integer'],
            [['title', 'brief'], 'string', 'max' => 255],
            [['create_at', 'update_at'], 'string', 'max' => 13],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'content' => '内容',
            'title' => '头',
            'brief' => '简介',
            'create_at' => '创建时间',
            'user_id' => '创建人',
            'update_at' => '更新时间',
        ];
    }
}
